import React, { useContext } from 'react'
import { themes, ThemeContext } from '../context'
//子组件 底层组件  useContext用来接收上下文的
export default function Child() {
    const value = useContext(ThemeContext)
    // console.log(value);
    return (
        <>
            <button style={value.dark}>hello</button>

            <button style={themes.light}>hello</button>


        </>


    )
}
